<?php /* EL PSY CONGROO */    		 					
require '../../../../zb_system/function/c_system_base.php';    	 	 				
require '../../../../zb_system/function/c_system_admin.php';         	 	
$zbp->Load();    	   	 		
$action='root';      	  		 
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}     			   	
if (!$zbp->CheckPlugin('San_Rabbit')) {$zbp->ShowError(48);die();}       				 
$blogtitle='主题配置';    	     	 
require $blogpath . 'zb_system/admin/admin_header.php';    	 	   		
require $blogpath . 'zb_system/admin/admin_top.php';        		 	
require $blogpath . 'zb_users/theme/San_Rabbit/plugin/header.php';    	 				 	
if(isset($_POST['Data'])){    	 			 	 
    if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();    		 	 	 	
	foreach($_POST['Data'] as $key=>$val){     	  	   
	   $zbp->Config('San_Rabbit')->$key = $val;    	 					 
	}     					 	
	$zbp->SaveConfig('San_Rabbit');    	 		    
	$zbp->ShowHint('good');    	 	     
}    	 		  		
?>

<div class="page">
            
            <div class="left-admin-menu">
                <nav class="admin-menu">
                  <ul id="treeMenu" class="tree tree-menu" data-ride="tree">
                    <?php San_Rabbit_SubMenu(5);?>
                    
                  </ul>
                </nav>
            </div>
            <div class="content">
            	
                <div class="panel">
                    <div class="panel-heading">
                        <strong><i class="icon icon-code-fork"></i>&nbsp;&nbsp;广告设置</strong>
                    </div>
                    <div class="table-border">
                         <form id="form1" name="form1" method="post">
                            <table class="table table-line-height table-details table-hover ">
                                <tbody>
									<tr>
                                        <td>幻灯片顶部-是否开启</td>
                                        <td>
                                            <input type="text" class="checkbox" name="Data[slide_ad1]" id="slide_ad1" value="<?php echo $zbp->Config('San_Rabbit')->slide_ad1;?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>幻灯片顶部-广告代码(860x80)	</td>
                                        <td><textarea class="form-control" name="Data[slidead1]" id="slidead1" style="width: 100%;" rows="3"><?php echo $zbp->Config('San_Rabbit')->slidead1;?></textarea></td>
                                    </tr>
									<tr>
                                        <td>文章列表顶部-是否开启</td>
                                        <td>
                                            <input type="text" class="checkbox" name="Data[list_ad1]" id="list_ad1" value="<?php echo $zbp->Config('San_Rabbit')->list_ad1;?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>文章列表顶部-广告代码(860x80)	</td>
                                        <td><textarea class="form-control" name="Data[listad1]" id="listad1" style="width: 100%;" rows="3"><?php echo $zbp->Config('San_Rabbit')->listad1;?></textarea></td>
                                    </tr>
									<tr>
                                        <td>文章列表底部-是否开启</td>
                                        <td>
                                            <input type="text" class="checkbox" name="Data[list_ad2]" id="list_ad2" value="<?php echo $zbp->Config('San_Rabbit')->list_ad2;?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>文章列表底部-广告代码(860x80)	</td>
                                        <td><textarea class="form-control" name="Data[listad2]" id="listad2" style="width: 100%;" rows="3"><?php echo $zbp->Config('San_Rabbit')->listad2;?></textarea></td>
                                    </tr>
									
									
									<tr>
                                        <td>文章页顶部-是否开启</td>
                                        <td>
                                            <input type="text" class="checkbox" name="Data[p_ad1]" id="p_ad1" value="<?php echo $zbp->Config('San_Rabbit')->p_ad1;?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>文章页顶部-广告代码（860x80）</td>
                                        <td><textarea class="form-control" name="Data[pad1]" id="pad1" style="width: 100%;" rows="3"><?php echo $zbp->Config('San_Rabbit')->pad1;?></textarea></td>
                                    </tr> 
									
									<tr>
                                        <td>文章页底部-是否开启</td>
                                        <td>
                                            <input type="text" class="checkbox" name="Data[p_ad2]" id="p_ad2" value="<?php echo $zbp->Config('San_Rabbit')->p_ad2;?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>文章页底部-广告代码（860x80）</td>
                                        <td><textarea class="form-control" name="Data[pad2]" id="pad2" style="width: 100%;" rows="3"><?php echo $zbp->Config('San_Rabbit')->pad2;?></textarea></td>
                                    </tr> 
									<tr>
                                        <td>评论顶部-是否开启</td>
                                        <td>
                                            <input type="text" class="checkbox" name="Data[p_ad3]" id="p_ad3" value="<?php echo $zbp->Config('San_Rabbit')->p_ad3;?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>评论顶部-广告代码（860x80）</td>
                                        <td><textarea class="form-control" name="Data[pad3]" id="pad3" style="width: 100%;" rows="3"><?php echo $zbp->Config('San_Rabbit')->pad3;?></textarea></td>
                                    </tr> 
                                    <tr>
                                        <td></td>
                                        <td>
                                            <input type="hidden" name="csrfToken" value="<?php echo $zbp->GetCSRFToken(); ?>">
                                            <button type="Submit" class="btn btn-primary">提交</button>
                                          
                                        </td>
                                    </tr> 
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                
                

            </div>
        <div class="copyright">
            <p>三十工作室</p>
        </div>
		
	</div>	

<?php
    		      
require $blogpath . 'zb_system/admin/admin_footer.php';     	 		 	 
RunTime();    	 	   		
?>